-- GENERATED SPELL FOR [Decrepit Clefthoof] --


function spell0_22105(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_22105', 593, 1)
end

function spell1_22105(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(12612,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22105', 570, 1)
end

function Sorts_22105(pUnit, Event)
local choix_sorts_22105 = math.random(0, 1)
if choix_sorts_22105 == 0 then
pUnit:RegisterEvent('spell0_22105', 1, 1)
end
if choix_sorts_22105 == 1 then
pUnit:RegisterEvent('spell1_22105', 1, 1)
end
end

function mob22105_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22105', math.random(1500, 3000), 1)
end

function mob22105_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22105_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22105_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22105, 1, 'mob22105_Action')
RegisterUnitEvent(22105, 2, 'mob22105_Leave')
RegisterUnitEvent(22105, 3, 'mob22105_Kill')
RegisterUnitEvent(22105, 4, 'mob22105_Die')
